<template>
    <div>
        <el-row class="tac">
            <el-col :span="12">
                <el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen" background-color="#B3C0D1"
                    text-color="black" active-text-color="red" router>
                    <el-submenu index="1">
                        <template slot="title">
                            <span>学生信息管理</span>
                        </template>
                        <el-menu-item-group font-size="8px">
                            <el-menu-item index="/home/stuInfoEntry">
                                学生信息录入
                            </el-menu-item>
                            <el-menu-item index="/home/stuInfoSelect">
                                学生信息查询
                            </el-menu-item>
                        </el-menu-item-group>
                    </el-submenu>
                    <el-submenu index="2">
                        <template slot="title">
                            <span>学生成绩管理</span>
                        </template>
                        <el-menu-item-group>
                            <el-menu-item index="/home/entryScores">
                                学生成绩录入
                            </el-menu-item>
                            <el-menu-item index="/home/seeAbout">
                                学生入学成绩查询
                            </el-menu-item>
                      
                        </el-menu-item-group>

                    </el-submenu>
                    <el-menu-item index="/home/gradeAnalysis">
                        <span slot="title">成绩分析</span>
                    </el-menu-item>

                </el-menu>
            </el-col>
        </el-row>
    </div>
</template>

<script>
export default {
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },

    }
}
</script>

<style lang="scss" scoped>
div {
    width: 100%;
}

.el-menu-item,
.el-submenu__title,
span {
    height: 30px;
    line-height: 30px;
    font-size: 10px;
}
</style>